package com.example.studentmanagement.mapper;

import com.example.studentmanagement.entity.StudentCourse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StudentCourseMapper {

    List<StudentCourse> findByStudentId(Integer studentId); // 根据学生ID查询选课记录

    List<StudentCourse> findByCourseId(Integer courseId); // 根据课程ID查询选课记录

    void insert(StudentCourse studentCourse);

    void deleteById(Integer id);

}
